package com.exam.demo.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.exam.demo.entity.Account;
import com.exam.demo.repository.AccountRepository;
import com.exam.demo.service.AccountService;

@Service
public class AccountServiceImpl implements AccountService{
	
	@Resource
	private AccountRepository accountRepository;

	@Override
	public Account getUser(Integer id) {
		
		return accountRepository.getUser(id);
	}
}
